﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using nanoCMS.Core.WebUI.Models;

namespace nanoCMS.Core.WebUI.Controllers {
	public class NavigationController : Controller
	{
		private readonly NavigationService _navigationService;
		public NavigationController(WorldContext worldContext)
		{
			_navigationService = new NavigationService(worldContext);
		}

		public ActionResult ShowNavigation(int id)
		{
			var model = _navigationService.GetNavigation(id);
			return PartialView("ShowNavigation", model);
		}
		
	}
}
